<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
<meta charset="utf-8" />
<title>大咖讲后台管理系统</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- 必须的css -->
<link href="<%=basePath %>bigshot/css/bootstrap.min.css" rel="stylesheet" />
<link href="<%=basePath %>bigshot/css/bootstrap-responsive.min.css" rel="stylesheet" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/font-awesome.min.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="/Public/Admin/<%=basePath %>bigshot/css/font-awesome-ie7.min.css" />
<![endif]-->
<link rel="stylesheet" href="<%=basePath %>bigshot/css/ace-fonts.css" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/jquery-ui-1.10.3.full.min.css" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/ace.min.css" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/ace-responsive.min.css" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/ace-skins.min.css" />
<!--[if lte IE 8]>
	<link rel="stylesheet" href="/Public/Admin/<%=basePath %>bigshot/css/ace-ie.min.css" />
<![endif]-->
<link rel="stylesheet" href="<%=basePath %>bigshot/css/bootstrap-timepicker.css" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/datepicker.css" />

<!-- lagou.alert -->
<link rel="stylesheet" href="<%=basePath %>bigshot/css/lagou.admin.css" />
<link rel="stylesheet" href="<%=basePath %>bigshot/css/lagou.global.css" />

<!-- webuploader -->
<link rel="stylesheet" type="text/css" href="<%=basePath %>bigshot/css/webuploader.css"/>
<link rel="stylesheet" type="text/css" href="<%=basePath %>bigshot/css/lxlin.css"/>

<!-- /必须的css -->


<script src='<%=basePath %>bigshot/js/jquery-1.10.2.min.js'></script>
<script src="<%=basePath %>bigshot/js/ace-extra.min.js"></script>
<script src="<%=basePath %>bigshot/js/lxlin.js"></script>
<script src='<%=basePath %>bigshot/js/bootstrap-paginator.min.js'></script>
</head>
<body>
<!-- 头部 -->
	<div class="navbar" id="navbar">
	<div class="navbar-inner">
		<div class="container-fluid">
			<a href="<%=basePath %>redirect/index.do" class="brand">
				<small class="logo">中国领先的高端商务在线语音分享社区</small>
			</a><!--/.brand-->

			<%@include file="top.jsp"%>
		</div><!--/.container-fluid-->
	</div><!--/.navbar-inner-->
</div>
<!-- /头部 -->
		<div class="main-container container-fluid">
			<a class="menu-toggler" id="menu-toggler" href="#">
				<span class="menu-text"></span>
			</a>
			<!-- 左侧菜单 -->
			
		<div class="sidebar" id="sidebar">
	<%@include file="left.jsp"%>
<div class="sidebar-collapse" id="sidebar-collapse">
	<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
</div>
<script type="text/javascript">
	try{ace.settings.check('sidebar','collapsed')}catch(e){}
</script>
</div>

			<!-- /左侧菜单 -->
			<div class="main-content">
				<!-- 面包屑导航 -->
				<div class="breadcrumbs" id="breadcrumbs">
					<ul class="breadcrumb">
						<li>
							<i class="icon-home home-icon"></i>
								<a href="<%=basePath %>redirect/index.do">首页</a>
							<span class="divider">
							<i class="icon-angle-right arrow-icon"></i>
							</span>
						</li>
						
<li class="active">我的讲座>我创建的讲座</li>

					</ul>
				</div>
				<!-- /面包屑导航 -->

				<div class="page-content">
				<div class="row-fluid">
				<div>
		<div style="float:right;">
		<form action="/admin.php?m=Admin&c=Factory&a=search" method="get">
			<input type="hidden" name="m" value="Admin"/>
			<input type="hidden" name="c" value="Factory"/>
			<input type="hidden" name="a" value="search"/>
			<input type="text" name="keywords" value="" class="pull-left" placeholder="请输入关键词..." required="required" style="margin-right:10px;height:22px;"/>
			<button type="submit" class="btn btn-primary btn-small pull-right"><i class="icon-search bigger-110"></i>搜索</button>
		</form>
		</div>
	</div>
	<div style="clear:both;"></div>
	
	<div class="table-header">我创建的讲座列表<button type="submit" class="btn btn-primary btn-small pull-right" style="margin-top: 3px;"><i class="icon-print bigger-110"></i>导出excel</button></div>
	<script type="text/javascript">
    

	</script>
	
	<table id="data_table" class="table table-striped table-bordered table-hover" style="margin-bottom:0px;">
		<thead>
			<tr>
				<th class="center">讲座ID</th>
				<th class="center">讲座名称</th>
				<th class="center">讲座标签</th>
				<th class="center">频道标签</th>
				<th class="center">订阅人数</th>
				<th class="center">绑定用户</th>
				<th class="center">讲座类型</th>
				<th class="center">创建时间</th>
				<th class="center">审核状态</th>
				<th class="center">讲座状态</th>
				<th class="center">产品状态</th>
				<th class="hidden-480 center">操作</th>
			</tr>
		</thead>
		<tbody id="list"></tbody>
		<!-- 分页 -->
	</table> 
	<!-- 分页 -->
	
	
<script type="text/javascript">
	
	$(function () {
	_tableshow();
});

function _tableshow(){
	var currentPage = 1;//起始页
	var size = 3;//每页显示条数
	var val = $("input[name='keywords']").val();//参数
    $.ajax({
    	url: "../lecture/createdlecture.do",
    	datatype: 'json',
    	type: "Post",
    	data: {
    		page:currentPage,
    		size:size,
    		param:val
    	},
    	success: function (data) {
    		if (data != null) {
    			var html;
       			$.each(eval("(" + data + ")").list, function (index, item) { //遍历返回的json
       				html = html + "<tr>";
					html = html + "<td class='center'>"+item.lid+"</td>";
       				html = html + "<td class='center'>"+item.name+"</td>";
       				html = html + "<td class='center'><span id='aaaaa' data-rel='tooltip' title='"+item.minlabel+"'>"+item.label+"</span></td>";
       				html = html + "<td class='center'>"+item.clabel+"</td>";
       				html = html + "<td class='center a_link'><a href='../redirect/lecture_created_subscribelist.do?lid="+item.subscribe+"'>51235人</a></td>";
       				/*  if(item.ls==1){
       					html = html + "<td class='center a_link'><a id='aaa' href='../redirect/lecture_created_bindinglist.do?lid="+item.lid+"' data-if='"item.ls"'>名单列表</a></td>";
       				}else if(item.ls==0){
       					html = html + "<td class='center'><a id='aaa'style='color: #808080;' data-if='"item.ls"'>名单列表</a></td>";
       				}  */
       				html = html + "<td class='center a_link'><a id='aaa' href='../redirect/lecture_created_bindinglist.do?lid="+item.lid+"' data-if=''>名单列表</a></td>";
       				html = html + "<td class='center'><span class='label arrowed label-primary'><input type='button' class='lecture_type' value='直播' style='border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;' /></span></td>";
       				html = html + "<td class='center'>"+item.ctime+"</td>";
       				if(item.ischeck==1){
       					html = html + "<td class='center'><span class='label arrowed label-important'>未提交</span></td>";
       				}else if(item.ischeck==2){
       					html = html + "<td class='center'><span class='label arrowed label-important'>未通过</span></td>";
       				}else if(item.ischeck==3){
       					html = html + "<td class='center'><span class='label arrowed label-important'>审核中</span></td>";
       				}else if(item.ischeck==4){
       					html = html + "<td class='center'><span class='label arrowed label-success'>已审核</span></td>";
       				}
       				
       			   
       				 if(item.lstatus==0){
       					html = html + "<td class='center'><span class='label arrowed label-primary'>预约</span></td>";
       				}else if(item.lstatus==1){
       					html = html + "<td class='center'><span class='label arrowed label-primary'>直播中</span></td>";
       				}else if(item.lstatus==2){
       					html = html + "<td class='center'><span class='label arrowed label-primary'>直播结束</span></td>";
       				}else if(item.lstatus==3){
       					html = html + "<td class='center'><span class='label arrowed label-primary'>回放</span></td>";
       				}  
       				
       			
       				if(item.pstatus==0){
       					html = html + "<td class='center'><span class='label arrowed label-primary'><input id='hahaha'  onclick='productlist_status($(this));' type='button' value='关闭' style='border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;' /></span></td>";
       				}
       				if(item.pstatus==1){
       					html = html + "<td class='center'><span class='label arrowed label-primary'><input id='hahaha'  onclick='productlist_status($(this));' type='button' value='停售' style='border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;' /></span></td>";
       				}
       				if(item.pstatus==2){
       					html = html + "<td class='center'><span class='label arrowed label-primary'><input id='hahaha'  onclick='productlist_status($(this));' type='button' value='开放' style='border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;' /></span></td>";
       				}
       				
       				html = html + "<td><div class='center'>";
       				html = html + "<a href='javascript:;' class='blue tooltip-info no-hover-underline' data-rel='tooltip' data-original-title='预览讲座' onclick=''>";
       				html = html + "<i class='icon-eye-open bigger-130'></i></a>";
       				html = html + "<a href='javascript:;' class='blue tooltip-info no-hover-underline editorial_lecture' data-rel='tooltip' data-original-title='编辑讲座' onclick=''>";
       				html = html + "<i class='icon-pencil bigger-130'></i></a>";
       				html = html + "<a href='javascript:;' class='blue tooltip-info no-hover-underline authority_management' data-rel='tooltip' data-original-title='权限管理' onclick=''>";
       				html = html + "<i class='icon-google-plus-sign bigger-130'></i></a>";
       				html = html + "<a href='javascript:;' class='blue tooltip-info no-hover-underline star_live' data-rel='tooltip' data-original-title='开启直播' onclick=''>";
       				html = html + "<i class='icon-facetime-video bigger-130'></i></a>";
       				html = html + "</div></td>";
       				html = html + "</tr>";							
       			});
				$("#list").html(html);
    		var pageCount = eval("(" + data + ")").pageCount; // 取到pageCount的值(把返回数据转成object类型)
    		var currentPage = eval("(" + data + ")").CurrentPage; // 得到CurrentPage
    		var options = {
    				currentPage: currentPage, // 当前页数
    				totalPages: pageCount, // 总页数
    				itemTexts: function (type, page, current) {
    					switch (type) {
    					case "first":
    						return "首页";
    					case "prev":
    						return "上一页";
    					case "next":
    						return "下一页";
    					case "last":
    						return "末页";
    					case "page":
    						return page;
    					}
    				},// 点击事件，用于通过Ajax来刷新整个list列表
    				onPageClicked: function (event, originalEvent, type, page) {
    					$.ajax({
    						url: "../lecture/createdlecture.do?page=" + page,
    						type: "Post",
    						data: {
    				    		page:page,
    				    		size:size,
    				    		param:val
    				    	},
    						success: function (data1) {
    							if (data1 != null) {
    								var html;
    								$.each(eval("(" + data1 + ")").list, function (index, item) { // 遍历返回的json
    									html = html + "<tr>";
    									html = html + "<td class='center'>"+item.lid+"</td>";
    				       				html = html + "<td class='center'>"+item.name+"</td>";
    				       				html = html + "<td class='center'><span id='aaaaa' data-rel='tooltip' title='"+item.minlabel+"'>"+item.label+"</span></td>";
    				       				html = html + "<td class='center'>"+item.clabel+"</td>";
    				       				html = html + "<td class='center a_link'><a href='../redirect/lecture_created_subscribelist.do?lid="+item.subscribe+"'>51235人</a></td>";
    				       				/*  if(item.ls==1){
    				       					html = html + "<td class='center a_link'><a id='aaa' href='../redirect/lecture_created_bindinglist.do?lid="+item.lid+"' data-if='"item.ls"'>名单列表</a></td>";
    				       				}else if(item.ls==0){
    				       					html = html + "<td class='center'><a id='aaa'style='color: #808080;' data-if='"item.ls"'>名单列表</a></td>";
    				       				}  */
    				       				html = html + "<td class='center a_link'><a id='aaa' href='../redirect/lecture_created_bindinglist.do?lid="+item.lid+"' data-if=''>名单列表</a></td>";
    				       				html = html + "<td class='center'><span class='label arrowed label-primary'><input type='button' class='lecture_type' value='直播' style='border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;' /></span></td>";
    				       				html = html + "<td class='center'>"+item.ctime+"</td>";
    				       				if(item.ischeck==1){
    				       					html = html + "<td class='center'><span class='label arrowed label-important'>未提交</span></td>";
    				       				}else if(item.ischeck==2){
    				       					html = html + "<td class='center'><span class='label arrowed label-important'>未通过</span></td>";
    				       				}else if(item.ischeck==3){
    				       					html = html + "<td class='center'><span class='label arrowed label-important'>审核中</span></td>";
    				       				}else if(item.ischeck==4){
    				       					html = html + "<td class='center'><span class='label arrowed label-success'>已审核</span></td>";
    				       				}
    				       				
    				       			   
    				       				 if(item.lstatus==0){
    				       					html = html + "<td class='center'><span class='label arrowed label-primary'>预约</span></td>";
    				       				}else if(item.lstatus==1){
    				       					html = html + "<td class='center'><span class='label arrowed label-primary'>直播中</span></td>";
    				       				}else if(item.lstatus==2){
    				       					html = html + "<td class='center'><span class='label arrowed label-primary'>直播结束</span></td>";
    				       				}else if(item.lstatus==3){
    				       					html = html + "<td class='center'><span class='label arrowed label-primary'>回放</span></td>";
    				       				}  
    				       				
    				       			
    				       				if(item.pstatus==0){
    				       					html = html + "<td class='center'><span class='label arrowed label-primary'><input id='hahaha'  onclick='productlist_status($(this));' type='button' value='关闭' style='border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;' /></span></td>";
    				       				}
    				       				if(item.pstatus==1){
    				       					html = html + "<td class='center'><span class='label arrowed label-primary'><input id='hahaha'  onclick='productlist_status($(this));' type='button' value='停售' style='border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;' /></span></td>";
    				       				}
    				       				if(item.pstatus==2){
    				       					html = html + "<td class='center'><span class='label arrowed label-primary'><input id='hahaha'  onclick='productlist_status($(this));' type='button' value='开放' style='border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;' /></span></td>";
    				       				}
    				       				
    				       				html = html + "<td><div class='center'>";
    				       				html = html + "<a href='javascript:;' class='blue tooltip-info no-hover-underline' data-rel='tooltip' data-original-title='预览讲座' onclick=''>";
    				       				html = html + "<i class='icon-eye-open bigger-130'></i></a>";
    				       				html = html + "<a href='javascript:;' class='blue tooltip-info no-hover-underline editorial_lecture' data-rel='tooltip' data-original-title='编辑讲座' onclick=''>";
    				       				html = html + "<i class='icon-pencil bigger-130'></i></a>";
    				       				html = html + "<a href='javascript:;' class='blue tooltip-info no-hover-underline authority_management' data-rel='tooltip' data-original-title='权限管理' onclick=''>";
    				       				html = html + "<i class='icon-google-plus-sign bigger-130'></i></a>";
    				       				html = html + "<a href='javascript:;' class='blue tooltip-info no-hover-underline star_live' data-rel='tooltip' data-original-title='开启直播' onclick=''>";
    				       				html = html + "<i class='icon-facetime-video bigger-130'></i></a>";
    				       				html = html + "</div></td>";
    				       				html = html + "</tr>";							
    				       			});
    								$("#list").html(html);
    							}
    						}
    					});
    				}
    			};
          $('#lecture_table').bootstrapPaginator(options);
        }
      }
    });
}


// 产品列表_产品状态切换
function productlist_status(s){
	if(window.confirm('您将要改变产品状态，请谨慎操作！')){
	var chi = s.parent().parent().parent().children('td')[10].childNodes[0].dataset.if;
	console.log(chi);
	if(chi!=0){
		if(s.val()=="开放"){
			s.val("停售");
		}
		else if(s.val()=="停售"){
			s.val("开放");
		}
	}
	else{
		if(s.val()=="开放"){
			s.val("停售");
		}
		else if(s.val()=="停售"){
		 	s.val("关闭");
		}
		else if(s.val()=="关闭"){
			s.val("开放");
		}
	}
		return true;
	}
	else{
		return false;
	}
}

//产品列表——编辑
function modifyproduct(_this){
	var chi = _this.parent().parent().parent().children('td')[8];
	var state=$(chi).children('span').children('input').val();
	console.log(state);
	console.log(chi);
	if(state=="关闭"){
		window.location.href="../redirect/lecture_edit.do";
	}
	else{
		alert("产品为关闭状态下才可编辑！");
	}
	
}
</script>
	<!-- <div id="list"></div> -->
	<div id="lecture_table"></div>
</div>	
	<!-- <div id="list"></div> -->
	
		<%-- <tbody>
			<tr id="delete_lecture">
				<td class="center">100</td>
				<td class="center">讲座名称1</td>
				<td class="center">
					<span data-rel="tooltip" data-original-title="财会类、投融类、职业类">财会类...</span>
				</td>
				<td class="center">证券公司</td>
				<td class="center a_link"><a href="<%=basePath %>redirect/lecture_created_subscribelist.do">456123人</a></td>
				<td class="center a_link"><a href="<%=basePath %>redirect/lecture_created_bindinglist.do" data-if="1">名单列表</a></td>
				<td class="center">
					<span class="label arrowed label-primary"><input type="button" class="lecture_type" value="直播" style="border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;" /></span>
				</td>
				<td class="center">2016-3-2 22:00</td>
				<td class="center"><span class="label arrowed label-important">审核中</span></td>
				<td class="center">
					<span class="label arrowed label-primary"><input type="button" value="直播中"  style="border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;width: 55px;" /></span>
				</td>
				<td class="center state">
					<span class="label" style="background: #2283c5!important">
						<input type="button" class="product_state" value="开放" style="background: #2283c5!important"/>
					</span>
					<span class="label">
						<input type="button" class="product_state" value="停售"/>
					</span>
					<span class="label">
						<input type="button" class="product_state" value="关闭"/>
					</span>
				</td>
				<td>
					<div class="center">
						<a  onclick=""  class="blue tooltip-info no-hover-underline" data-rel="tooltip" data-original-title="预览讲座">
							<i class="icon-eye-open bigger-130"></i>
						</a>
						<a class="blue tooltip-info no-hover-underline editorial_lecture" data-rel="tooltip" data-original-title="编辑讲座">
							<i class="icon-pencil bigger-130"></i>
						</a>
						<a class="blue tooltip-info no-hover-underline authority_management" data-rel="tooltip" data-original-title="权限管理">
							<i class="icon-google-plus-sign bigger-130"></i>
						</a>
						<a  class="blue tooltip-info no-hover-underline star_live" data-rel="tooltip" data-original-title="开启直播">
							<i class="icon-facetime-video bigger-130"></i>
						</a>
					</div>
				</td>
			</tr>
			<tr>
				<td class="center">120</td>
				<td class="center">讲座名称2</td>
				<td class="center">
					<span data-rel="tooltip" data-original-title="审计类、投融类、职业类">审计类...</span>
				</td>
				<td class="center">证券公司</td>
				<td class="center a_link"><a href="<%=basePath %>redirect/lecture_created_subscribelist.do">456123人</a></td>
				<td class="center"><a style="color: #808080;" data-if="0">名单列表</a></td>
				<td class="center">
					<span class="label arrowed label-primary"><input type="button"  class="lecture_type" value="录播" style="border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;" /></span>
				</td>
				<td class="center">2016-3-2 22:00</td>
				<td class="center"><span class="label arrowed label-success">已审核</span></td>
					
				<td class="center state">
					<span class="label arrowed label-primary"><input type="button" value="预约"  style="border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;width: 55px;" /></span>
				</td>
				<td class="center state">
					<span class="label" style="background: #2283c5!important">
						<input type="button" class="product_state" value="开放" style="background: #2283c5!important"/>
					</span>
					<span class="label">
						<input type="button" class="product_state" value="停售"/>
					</span>
					<span class="label">
						<input type="button" class="product_state" value="关闭"/>
					</span>
				</td>
				<td>
					<div class="center">
						<a  onclick=""  class="blue tooltip-info no-hover-underline" data-rel="tooltip" data-original-title="预览讲座">
							<i class="icon-eye-open bigger-130"></i>
						</a>
						<a class="blue tooltip-info no-hover-underline editorial_lecture" data-rel="tooltip" data-original-title="编辑讲座">
							<i class="icon-pencil bigger-130"></i>
						</a>
						<a class="blue tooltip-info no-hover-underline authority_management" data-rel="tooltip" data-original-title="权限管理">
							<i class="icon-google-plus-sign bigger-130"></i>
						</a>
						<a  class="blue tooltip-info no-hover-underline star_live" data-rel="tooltip" data-original-title="开启直播">
							<i class="icon-facetime-video bigger-130"></i>
						</a>
					</div>
				</td>
			</tr>
			<tr>
				<td class="center">120</td>
				<td class="center">讲座名称2</td>
				<td class="center">
					<span data-rel="tooltip" data-original-title="审计类、投融类、职业类">审计类...</span>
				</td>
				<td class="center">证券公司</td>
				<td class="center a_link"><a href="<%=basePath %>redirect/lecture_created_subscribelist.do">2152人</a></td>
				<td class="center a_link"><a href="<%=basePath %>redirect/lecture_created_bindinglist.do" data-if="1">名单列表</a></td>
				<td class="center">
					<span class="label arrowed label-primary"><input type="button" class="lecture_type" value="录播" style="border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;" /></span>
				</td>
				<td class="center">2016-3-2 22:00</td>
				<td class="center"><span class="label arrowed label-success">已审核</span></td>
					
				<td class="center">
					<span class="label arrowed label-primary"><input type="button" value="直播结束" onclick="changestate2()" style="border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;width: 55px;" /></span>
				</td>
				<td class="center state">
					<span class="label" style="background: #2283c5!important">
						<input type="button" class="product_state" value="开放" style="background: #2283c5!important"/>
					</span>
					<span class="label">
						<input type="button" class="product_state" value="停售"/>
					</span>
					<span class="label">
						<input type="button" class="product_state" value="关闭"/>
					</span>
				</td>
				<td>
					<div class="center">
						<a  onclick=""  class="blue tooltip-info no-hover-underline" data-rel="tooltip" data-original-title="预览讲座">
							<i class="icon-eye-open bigger-130"></i>
						</a>
						<a class="blue tooltip-info no-hover-underline editorial_lecture" data-rel="tooltip" data-original-title="编辑讲座">
							<i class="icon-pencil bigger-130"></i>
						</a>
						<a class="blue tooltip-info no-hover-underline authority_management" data-rel="tooltip" data-original-title="权限管理">
							<i class="icon-google-plus-sign bigger-130"></i>
						</a>
						<a  class="blue tooltip-info no-hover-underline star_live" data-rel="tooltip" data-original-title="开启直播">
							<i class="icon-facetime-video bigger-130"></i>
						</a>
					</div>
				</td>
			</tr>
			<tr>
				<td class="center">120</td>
				<td class="center">讲座名称2</td>
				<td class="center">
					<span data-rel="tooltip" data-original-title="投融类、审计类、职业类">投融类...</span>
				</td>
				<td class="center">证券公司</td>
				<td class="center a_link"><a href="<%=basePath %>redirect/lecture_created_subscribelist.do">456123人</a></td>
				<td class="center"><a style="color: #808080;" data-if="0">名单列表</a></td>
				<td class="center">
					<span class="label arrowed label-primary"><input type="button" class="lecture_type" value="直播" style="border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;" /></span>
				</td>
				<td class="center">2016-3-2 22:00</td>
				<td class="center"><span class="label arrowed label-success">已审核</span></td>
				<td class="center">
					<span class="label arrowed label-primary"><input type="button" value="回放" onclick="changestate3()" style="border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;width: 55px;" /></span>
				</td>
				<td class="center state">
					<span class="label" style="background: #2283c5!important">
						<input type="button" class="product_state" value="开放" style="background: #2283c5!important"/>
					</span>
					<span class="label">
						<input type="button" class="product_state" value="停售"/>
					</span>
					<!-- <span class="label  label-primary"> -->
					<span class="label">
						<input type="button" class="product_state" value="关闭"/>
					</span>
				</td>
				<td>
					<div class="center">
						<a  onclick=""  class="blue tooltip-info no-hover-underline" data-rel="tooltip" data-original-title="预览讲座">
							<i class="icon-eye-open bigger-130"></i>
						</a>
						<a class="blue tooltip-info no-hover-underline editorial_lecture" data-rel="tooltip" data-original-title="编辑讲座">
							<i class="icon-pencil bigger-130"></i>
						</a>
						<a class="blue tooltip-info no-hover-underline authority_management" data-rel="tooltip" data-original-title="权限管理">
							<i class="icon-google-plus-sign bigger-130"></i>
						</a>
						<a  class="blue tooltip-info no-hover-underline star_live" data-rel="tooltip" data-original-title="开启直播">
							<i class="icon-facetime-video bigger-130"></i>
						</a>
					</div>
				</td>
			</tr>
			<tr id="delete_lecture">
				<td class="center">100</td>
				<td class="center">讲座名称1</td>
				<td class="center">
					<span data-rel="tooltip" data-original-title="财会类、投融类、职业类">财会类...</span>
				</td>
				<td class="center">证券公司</td>
				<td class="center a_link"><a >0人</a></td>
				<td class="center"><a style="color: #808080;" data-if="0">名单列表</a></td>
				<td class="center">
					<span class="label arrowed label-primary"><input type="button" class="lecture_type" value="直播" style="border: none;background-color: #2283c5;font-size: 12px;line-height: 12px;color: #fff;" /></span>
				</td>
				<td class="center">——</td>
				<td class="center"><span class="label arrowed label-important">未提交</span></td>
				<td class="center">——</td>
				<td class="center">——</td>
				<td>
					<div class="center">
						<a  onclick=""  class="blue tooltip-info no-hover-underline" data-rel="tooltip" data-original-title="预览讲座">
							<i class="icon-eye-open bigger-130"></i>
						</a>
						<a class="blue tooltip-info no-hover-underline editorial_lecture" data-rel="tooltip" data-original-title="编辑讲座">
							<i class="icon-pencil bigger-130"></i>
						</a>
						<a class="blue tooltip-info no-hover-underline authority_management" data-rel="tooltip" data-original-title="权限管理">
							<i class="icon-google-plus-sign bigger-130"></i>
						</a>
						<a  class="blue tooltip-info no-hover-underline star_live" data-rel="tooltip" data-original-title="开启直播">
							<i class="icon-facetime-video bigger-130"></i>
						</a>
					</div>
				</td>
			</tr>
		</tbody>
	
	<!-- 分页 -->
	<div class="row-fluid">
		<div class="page"><div>  <span class="current">1</span><a class="num" href="/admin.php?m=Admin&c=Factory&a=index&m=Admin&p=2">2</a><a class="num" href="/admin.php?m=Admin&c=Factory&a=index&m=Admin&p=3">3</a><a class="num" href="/admin.php?m=Admin&c=Factory&a=index&m=Admin&p=4">4</a><a class="num" href="/admin.php?m=Admin&c=Factory&a=index&m=Admin&p=5">5</a><a class="num" href="/admin.php?m=Admin&c=Factory&a=index&m=Admin&p=6">6</a><a class="num" href="/admin.php?m=Admin&c=Factory&a=index&m=Admin&p=7">7</a><a class="num" href="/admin.php?m=Admin&c=Factory&a=index&m=Admin&p=8">8</a><a class="num" href="/admin.php?m=Admin&c=Factory&a=index&m=Admin&p=9">9</a><a class="num" href="/admin.php?m=Admin&c=Factory&a=index&m=Admin&p=10">10</a><a class="num" href="/admin.php?m=Admin&c=Factory&a=index&m=Admin&p=11">11</a> <a class="next" href="/admin.php?m=Admin&c=Factory&a=index&m=Admin&p=2">>></a> <a class="end" href="/admin.php?m=Admin&c=Factory&a=index&m=Admin&p=25">25</a></div></div>
	</div>--%>
</div>	


				</div><!--/.page-content-->

				<!-- 右侧悬浮的设置按钮,去掉好像会引起js报错 -->
				<div class="ace-settings-container hide" id="ace-settings-container">
					<div class="btn btn-app btn-mini btn-warning ace-settings-btn" id="ace-settings-btn">
						<i class="icon-cog bigger-150"></i>
					</div>

					<div class="ace-settings-box" id="ace-settings-box">
						<div>
							<div class="pull-left">
								<select id="skin-colorpicker" class="hide">
									<option data-skin="default" value="#438EB9">#438EB9</option>
									<option data-skin="skin-1" value="#222A2D">#222A2D</option>
									<option data-skin="skin-2" value="#C6487E">#C6487E</option>
									<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
								</select>
							</div>
							<span>&nbsp; Choose Skin</span>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar" />
							<label class="lbl" for="ace-settings-navbar"> Fixed Navbar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
							<label class="lbl" for="ace-settings-sidebar"> Fixed Sidebar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
							<label class="lbl" for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
							<label class="lbl" for="ace-settings-rtl"> Right To Left (rtl)</label>
						</div>
					</div>
				</div>
				<!-- /右侧悬浮的设置按钮,去掉好像会引起js报错 -->
			</div>
		</div>

<!-- 回到顶部 -->
<a href="###" id="btn-scroll-up" class="btn-scroll-up btn btn-small btn-inverse">
	<i class="icon-double-angle-up icon-only bigger-110"></i>
</a>
<!-- /回到顶部 -->

<!-- 操作后提示框 -->
<div id="lg-alert" class="hide" style="margin-bottom:-1.5em;"></div>

<!--modal表单弹出框-->
<form id="lg-form" class="modal fade hide form-horizontal" method="post" tabindex="-1" enctype="multipart/form-data" onSubmit="return false;"></form>

<!-- 模态框(Modal) -->
<div class="modal fade" id="Modal" tabindex="-1" role="dialog" aria-labelledby="ModalLabel" aria-hidden="true">
	
</div><!-- /.modal -->
		
<!-- 基础js部分 -->
<script src='<%=basePath %>bigshot/js/jquery.mobile.custom.min.js'></script>

<script src="<%=basePath %>bigshot/js/jquery-ui-1.10.3.full.min.js"></script>
<script src="<%=basePath %>bigshot/js/jquery.ui.touch-punch.min.js"></script>
<script src="<%=basePath %>bigshot/js/bootstrap.min.js"></script>
<script src="<%=basePath %>bigshot/js/ace-elements.min.js"></script>
<script src="<%=basePath %>bigshot/js/ace.min.js"></script>

<script src="<%=basePath %>bigshot/js/jquery.dataTables.min.js"></script>
<script src="<%=basePath %>bigshot/js/jquery.dataTables.bootstrap.js"></script>
<script src="<%=basePath %>bigshot/js/jquery.inputlimiter.1.3.1.min.js"></script>

<!-- ueditor -->
<script type="text/javascript" src="<%=basePath %>bigshot/js/ueditor.config.js"></script>
<script type="text/javascript" src="<%=basePath %>bigshot/js/ueditor.all.js"></script>

<!-- webuploader -->
<script type="text/javascript" src="<%=basePath %>bigshot/js/webuploader.js"></script>

<!-- lagoualert -->
<script src="<%=basePath %>bigshot/js/lagou/lagou.global.js"></script>

<!-- common.lib库 -->
<script src="<%=basePath %>bigshot/js/conmon/common.lib.js"></script>

<!-- /基础js部分 -->
<script>
   $(function (){$('#myModal').modal({
      keyboard: true
   })});
window.onload = function(){  
    $("#data_table tbody tr").each(function(){
		var _this = $(this);
		var i = _this.find('td a')[1].dataset.if;
		console.log(i);
		var el = _this.find('td')[10];
		var input = el.getElementsByTagName('span')[2].getElementsByTagName('input')[0];
		if(i==1){
			input.disabled=true;
			input.style.cssText="color:#fff;background-color:#c0c0c0;cursor:not-allowed;";
			input.dataset.gray = '3';
			el.getElementsByTagName('span')[2].style.cssText="background:#c0c0c0!important";
		}
		
	});
} 
</script>
<script type="text/javascript">
jQuery(function($){
	try{
		ace.settings.navbar_fixed(true);
		ace.settings.sidebar_fixed(true);
		ace.settings.breadcrumbs_fixed(true);
	}
	catch(e){}
	$('[data-rel=tooltip]').tooltip();
	$('[data-rel=popover]').popover({html:true});
});	
</script>


<script src="<%=basePath %>bigshot/js/jquery.easy-pie-chart.min.js"></script>
<script src="<%=basePath %>bigshot/js/jquery.slimscroll.min.js"></script>
<script src="<%=basePath %>bigshot/js/jquery.sparkline.min.js"></script>
<script src="<%=basePath %>bigshot/js/flot/jquery.flot.min.js"></script>
<script src="<%=basePath %>bigshot/js/flot/jquery.flot.pie.min.js"></script>
<script src="<%=basePath %>bigshot/js/flot/jquery.flot.resize.min.js"></script>



</body>
</html>